package homework.homework02;

public class Cat extends Animal {
    public Cat(){}

    public Cat(String name, String color, double price) {
        super(name, color, price);
    }

    //由于父类的功能不符合,重写
    @Override
    public void skill() {
        System.out.println(getName() + "抓老鼠");
    }
}
